<div class="col-jy" style="width:100%;"><div class="panel panel-default form-horizontal"><div class="panel-heading">扫描下面的二维码完成绑定！</div>
<div class="panel-body">

<div class="form-group js-qrcode-show">
	<label class="col-xs-12 col-sm-3 col-md-2 left-label">二维码</label>
	<div class="col-sm-9 col-xs-12 ">
		<div style="margin-top:6px" id="qrcode-curl" ></div>
		<div class="help-block"></div>
	</div>
</div>
</div>
</div></div>
<script>
var url=scope.tool.manage_url('core/user.login/sq_login/session_id='+scope.pagedata.session_id,true);
	scope.tool.qr(url,'qrcode-curl');
	
	scope.tool.wechat_login(function(res){
		if(res.to_uid==scope.pagedata.session_id && res.message && res.message.openid){
			scope.pagedata.item.openid=res.message.openid;
			
			scope.post(scope.pagedata.item,'wechat_scan_login');
		}
	});
</script>